using System;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    public class RoleService
    {
        private DAO.RoleDAO roleDAO = new DAO.RoleDAO();

        public void InsertRole(Entities.Role role)
        {
            roleDAO.InsertRole(role);
        }

        public void UpdateRole(Entities.Role role)
        {
            roleDAO.UpdateRole(role);
        }

        public Entities.Role GetRoleByRoleID(string sRoleID)
        {
            return roleDAO.GetRoleByRoleID(sRoleID);
        }

        public Entities.Role GetRoleByLoginID(string sLoginID)
        {
            return roleDAO.GetRoleByLoginID(sLoginID);
        }

        public List<Entities.Role> GetAllRoles()
        {
            return roleDAO.GetAllRoles();
        }
    }
}
